"""blog URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from .views import (index,
                    add_article,
                    article_detail,
                    update_article,
                    del_article,
                    author_info,
                    regist,
                    loginx,
                    logoutx,
                    )

urlpatterns = [
    path("",index,name="index"),
    path("add_article",add_article,name="add_article"),
    path("article_detail",article_detail,name="article_detail"),
    path("update_article/<int:articleid>",update_article,name="update_article"),
    path("del_article/<int:articleid>",del_article,name='del_article'),
    path("author_info",author_info,name='author_info'),

    path('regist/',regist,name = 'regist'),
    path('loginx/',loginx,name = 'loginx'),
    path('logoutx/',logoutx,name = 'logoutx'),



]
